/**
 * @(#)XiaoMiApplication.java 1.0 2013/9/4
 * Copyright 2013 PD, Inc. All rights reserved.
 */
package cn.broadin.app.hotel.application;

/**
 *
 * XiaoMiApplication 应用程序全局变量定义(小米)
 * @author fenghui
 *
 */
public class XiaoMiApplication implements IApplication{
	//是否需要鉴权 true需要，false不需要
	private boolean IS_NEED_CHECKUSER  = false;
	//是否需要获取mac地址，true需要，false不需要
	private boolean IS_NEED_GETSTBMAC = true;
	//优先获取wifi网络，true为先获取wifi，无法获取才获取有线网络，false直接获取有线网络
	private boolean GET_WIFIMAC_FIRST = true;
	//apk文件名称
	private String APKFILENAME = "hotels.apk";
	//版本url
	private String VERSIONURL = "http://192.168.2.201/fengh/update/pd_yuedong/";
	//鉴权URL
	private String AUTHURL = "http://113.106.92.98:12080/ott-auth/user/authoriry?stbid=";
	//应用程序默认地址
	private String APP_DEFAULTURL = "http://192.168.2.201:20080/ismp-api/user/nav?deid=";
	//应用程序“关于”地址
	private String APP_ABOUTURL = "http://210.83.225.39/brand/aboutPD/index.htm";
	//数据ip和端口
	private String PROXY_IPPORT = "http://192.168.2.201:9080";
	//平台ip和端口
	private String PT_IPPORT = "http://192.168.2.201:20080";
	
	@Override
	public boolean IS_NEED_CHECKUSER() {
		return IS_NEED_CHECKUSER;
	}
	
	@Override
	public boolean IS_NEED_GETSTBMAC() {
		return IS_NEED_GETSTBMAC;
	}
	
	@Override
	public boolean GET_WIFIMAC_FIRST() {
		return GET_WIFIMAC_FIRST;
	}
	
	@Override
	public String APP_PACKAGENAME() {
		return APP_PACKAGENAME;
	}
	
	@Override
	public String APKFILENAME() {
		return APKFILENAME;
	}
	
	@Override
	public String VERSIONURL() {
		return VERSIONURL;
	}
	
	@Override
	public String AUTHURL() {
		return AUTHURL;
	}
	
	@Override
	public String APP_DEFAULTURL(String url) {
		if(url != null && !url.equals("")) {
			APP_DEFAULTURL = url;
		}
		return APP_DEFAULTURL;
	}
	
	@Override
	public String APP_ABOUTURL() {
		return APP_ABOUTURL;
	}
	
	@Override
	public String PROXY_IPPORT() {
		return PROXY_IPPORT;
	}
	
	@Override
	public String PT_IPPORT() {
		return PT_IPPORT;
	}
}